<#include "/common/head2.html"/> 
<div class="easyui-panel addPage" data-options="fit:true,border:false,novalidate:true">
	<form class="easyui-form" id="ff" method="post" data-options="novalidate:true">
		<table>
			<tr>
				<td>
					<span class="adertisement">接口名称：</span>
					<input style="width: 100px;height: 20px;" required="true" class="easyui-validatebox" type="text" id="name" name="name" value=""></input>
				</td>
			</tr>
			
			<tr>
				<td>
					<span class="adertisement">简称：</span>
					<input style="width: 100px;height: 20px;" required="true" class="easyui-validatebox" type="text" id="shortName" name="shortName" value=""></input>
				</td>
			</tr>
			
			<tr>
				<td>
					<span class="adertisement">访问URL：</span>
					<input style="width: 100px;height: 20px;" required="true" class="easyui-validatebox" type="text" id="visitUrl" name="visitUrl" value=""></input>
				</td>
			</tr>
			
			<tr>
				<td>
					<span class="adertisement">解析类路径：</span>
					<input style="width: 100px;height: 20px;" required="true" class="easyui-validatebox" type="text" id="analytic" name="analytic" value=""></input>
					<!-- 传的way表的id -->
					<input type="hidden" value="${wayId!''}" id="hid_wayId">
				</td>
			</tr>
			
			<tr>
            	<td>
            	<div data-options="region:'south',border:false" style="text-align: right; padding: 12px; border-top-width: 0px; border-top-style: solid; border-top-color: rgb(221, 221, 221); width: 674px; height: 28px;" title="" class="panel-body panel-body-noheader panel-body-noborder layout-body">
            		<a class="easyui-linkbutton color1 l-btn l-btn-small" href="javascript:void(0)" onclick="javascript:save();" style="width: 220px;">
            			<span class="l-btn-center" style="margin-top: 0px;"><span class="l-btn-text">确定</span></span>
            		</a>
        		</div>
            	</td>
            </tr>
		</table>
	</form>
</div>
<script type="text/javascript">
//提交保存
var wayId=$("#hid_wayId").val();
function save() {
	$("#ff").form('submit', { 
        url: 'addInterfacePage?wayId='+wayId, 
        /* onSubmit: function () {   
        	//表单提交前的回调函数 
        	if(!$("#ff").form('enableValidation').form('validate')) {
            	$.messager.alert('操作结果','请检查标红输入项','error');
        		return false;
        	}       	
        	
        },  */
        success: function (v) {
        	location.replace('detail?wayId='+wayId)
    	}
      }); 
}


</script>
<#include "/common/dialogWindow.html"/>
<#include "/common/foot.html"/>